/**
 * Copyright (C) 2013-2014 EaseMob Technologies. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *     http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.edgclub.edg;

import android.os.Environment;

import com.hyphenate.easeui.EaseConstant;

public class Constant extends EaseConstant {
	public static final String NEW_FRIENDS_USERNAME = "item_new_friends";
	public static final String GROUP_USERNAME = "item_groups";
	public static final String CHAT_ROOM = "item_chatroom";
	public static final String ACCOUNT_REMOVED = "account_removed";
	public static final String ACCOUNT_CONFLICT = "conflict";
	public static final String CHAT_ROBOT = "item_robots";
	public static final String MESSAGE_ATTR_ROBOT_MSGTYPE = "msgtype";
	public static final String ACTION_GROUP_CHANAGED = "action_group_changed";
	public static final String ACTION_CONTACT_CHANAGED = "action_contact_changed";
	public static final String MESSAGE_ATTR_IS_VOICE_CALL = "is_voice_call";
	
	public static final String DIR = Environment.getExternalStorageDirectory()+"/edgclub";


	public static final String cropDir = DIR + "/crop";

	public static final String bgDir = "/data/data/com.edgclub.edg/bg";
	public static final String bgDirImage = "/data/data/com.edgclub.edg/bg/splash.jpg";
	

	public static final String userIconDir = DIR + "/user_icon/";

	public static final String SAVEIMAGEPATH = Environment
			.getExternalStorageDirectory() + "/edgclub/Image/";
	
	public static final String searchKeyword = DIR + "/keyword";
	public static final String historySearch = DIR + "/history/group_history.json";
	public static final String Grouphistory = DIR + "/history/group_lasthistory.json";

	public static final String shareImage = DIR + "/shareimage/";
	public static final String TOPICIMAGEPATH =DIR+"/topicimages/";
	public static final String SAVETOPIC ="/data/data/com.edgclub.edg/topic/";

	public static final String apkDir = DIR + "/apk/";
	/**
	 *
	 */

	public static final String gifDir = DIR + "/gif";
	public static final String peson_hpsw ="/data/data/com.edgclub.edg/hpswdDir/";

	/* 小米推送 */
	// user your appid the key.
	public static final String APP_ID = "2882303761517384965";
	// user your appid the key.
	public static final String APP_KEY = "5291738493965";

	/**
	 * 小米通知类型
	 */
	public static final int MiPush_Type_Reply=1;//1 评论回复
	public static final int MiPush_Type_Focus=2;//1 关注的人发帖
	public static final int MiPush_Type_Other=0;//1 其他通知
	public static final int MiPush_Type_Report=3;//3 举报
	/**
	 * 头像返回码
	 */
	public  final static int IMAGE_RESULT=11111;
	public  final static int SING_RESULT=11112;
	/**
	 *
	 */
	public  final static int USER_RESULT=22222;
	public  final static int USER_RESULT_ICON=22223;

//***************************************美拍
	/**
	 * 默认最大时长
	 */
	public static int DEFAULT_DURATION_MAX_LIMIT = 8;

	public static int DEFAULT_DURATION_LIMIT_MIN = 2;
	/**
	 * 默认码率
	 */
	public static int DEFAULT_BITRATE = 800 * 1024;
	/**
	 * 默认CRF参数
	 */
	public static int DEFAULT_VIDEO_RATE_CRF = 6;

	/**
	 * VideoPreset
	 */
	public static String DEFAULT_VIDEO_Preset = "faster";
	/**
	 * VideoLevel
	 */
	public static int DEFAULT_VIDEO_LEVEL = 30;

	/**
	 * VideoTune
	 */
	public static String DEFAULT_VIDEO_TUNE = "zerolatency";
	/**
	 * movflags_KEY
	 */
	public static String DEFAULT_VIDEO_MOV_FLAGS_KEY = "movflags";

	/**
	 * movflags_VALUE
	 */
	public static String DEFAULT_VIDEO_MOV_FLAGS_VALUE = "+faststart";

	/**
	 * 默认Video保存路径，请开发者自行指定
	 */
	public static String VIDEOPATH;

	public static String THUMBNAILPATH = VIDEOPATH + ".png";
	/**
	 * 水印本地路径，文件必须为rgba格式的PNG图片
	 */
	public static String WATER_MARK_PATH = "assets://Qupai/watermark/qupai-logo.png";
	/**
	 * 水印位置1为右上，2为右下
	 */
	public static int WATER_MARK_POSITION = 1;

	public static String appkey = "206b3eea33d1da4";// 204955a834a7c36
	public static String appsecret = "d72874fa83e44e05862b94ae878a5542 ";// 55e409dc27c04a87be124a2939348b58
	public static String tags = "tags";
	public static String description = "description";
	public static int shareType = 1; //是否公开 0公开分享 1私有(default) 公开类视频不需要AccessToken授权

	public static String accessToken;//accessToken 通过调用授权接口得到
	public static String space = "workspace"; //存储目录 建议使用uid cid之类的信息
	public static String domain = "http://video.ycqiyuan.com";//当前TEST应用的域名。该地址每个应用都不同 sdk.s.qupai.me


	public static final String TAOBAO_APPKEY = "23445086";


	//----------------------end
}
